using System;
using System.Collections.Generic;
using System.Text;

namespace Deepcode.Flux.Core.Systems.CMS.TemplateGallery
{
	/// <summary>
	/// Represents a relationship command stored against
	/// a content type during loading that will be used to
	/// build the relationship tree once all types have been
	/// loaded.
	/// </summary>
	public class ContentTypeRelationshipInfo
	{
		// Private members
		private ContentTypeRelationshipAction _Action = ContentTypeRelationshipAction.Add;
		private string _ContentTypeID = "";

		/// <summary>
		/// The action to carry out
		/// </summary>
		public ContentTypeRelationshipAction Action { get { return _Action; } }
		/// <summary>
		/// The content type ID that the action relates to
		/// </summary>
		public string ContentTypeID { get { return _ContentTypeID; } }

		/// <summary>
		/// Constructor to populate fields
		/// </summary>
		/// <param name="act"></param>
		/// <param name="cid"></param>
		public ContentTypeRelationshipInfo(ContentTypeRelationshipAction act, string cid)
		{
			_Action = act;
			_ContentTypeID = cid;
		}
	}
}
